package com.zhaogang.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zhaogang.dao.SaleBabyAccountMapper;
import com.zhaogang.entity.SaleBabyAccount;
import com.zhaogang.service.SaleBabyAccountService;
@Service
public class SaleBabyAccountServiceImpl implements SaleBabyAccountService {
	@Resource
	private SaleBabyAccountMapper saleBabyAccountMapper;
	
	public List<SaleBabyAccount> selectList() {
		// TODO Auto-generated method stub
		return saleBabyAccountMapper.selectByPrimaryKey();
	}

	public List<SaleBabyAccount> updadeList(SaleBabyAccount record) {
		// TODO Auto-generated method stub
		return saleBabyAccountMapper.updateByPrimaryKey(record);
	}

	public void insertList(SaleBabyAccount saleBabyAccount) {
		// TODO Auto-generated method stub
		saleBabyAccountMapper.insert(saleBabyAccount);
	}
	//删除子账号
	public void deleteBaby(Integer id) {
		// TODO Auto-generated method stub
		saleBabyAccountMapper.deleteByPrimaryKey(id);
	}

}

